package com.shop.api.feign;

import com.shop.Result.LdbzResult;
import com.shop.pojo.LdbzSheet;
import com.shop.pojo.LdbzSheetAssign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;
import java.util.Map;

@FeignClient(name = "shop-service-Sheet")
public interface SheetService {
    @RequestMapping(value ="/item/service/countSheet",method = RequestMethod.GET)
    LdbzResult countSheet(LdbzSheet entity);
    @RequestMapping(value ="/item/service/getSheetPage",method = RequestMethod.GET)
    LdbzResult getSheetPage(LdbzSheet entity , int pn , int limit) ;
    @RequestMapping(value ="/item/service/getSheetList",method = RequestMethod.GET)
    LdbzResult getSheetList(LdbzSheet entity);
    @RequestMapping(value ="/item/service/getEnableSheetsByKeys",method = RequestMethod.GET)
    List<LdbzSheet> getEnableSheetsByKeys(Object sheetKeys);
    @RequestMapping(value ="/item/service/selectByKey",method = RequestMethod.GET)
    LdbzResult selectByKey(Long id);
    @RequestMapping(value ="/item/service/updateByKey",method = RequestMethod.GET)
    LdbzResult updateByKey(LdbzSheet entity);
    @RequestMapping(value ="/item/service/getSheetAssignList",method = RequestMethod.GET)
    LdbzResult getSheetAssignList(long sheetId);

    @RequestMapping(value ="/item/service/getSheetAssignListByKey",method = RequestMethod.GET)
    List<Map> getSheetAssignListByKey(Object sheetKey);
    @RequestMapping(value ="/item/service/deleteAssign",method = RequestMethod.GET)
    LdbzResult deleteAssign(String ids);
    @RequestMapping(value ="/item/service/addAssign",method = RequestMethod.GET)
    LdbzResult addAssign(LdbzSheetAssign entity);
}
